//
//  FleetListAPI.m
//  StarOrangeStaff
//
//  Created by lshenrong on 2020/7/14.
//  Copyright © 2020 lshenrong. All rights reserved.
//

#import "FleetListAPI.h"

@interface   FleetListAPI ()

@property (nonatomic,assign) NSInteger pageSize;
@property (nonatomic,assign) NSInteger pageNum;
@property (nonatomic,copy) NSString *fleetType;//车队类型，1-挂靠车队，2-外系统车队

@end

@implementation FleetListAPI

- (instancetype)initWithPageSize:(NSInteger)pageSize
                         pageNum:(NSInteger)pageNum
                       fleetType:(NSString *)fleetType{
    
    if (self = [super init]) {
          [self testDataAPI];
      self.pageNum = pageNum;
      self.pageSize = pageSize;
      self.fleetType = fleetType;
    }
    return self;
    
}



- (NSString *)requestUrl {
    return @"message/fleet/queryList";
}

- (void)testDataAPI {
    self.pageNum = 1;
    self.pageSize = 5;
    self.fleetType = @"2";

}


- (id)requestAppendArgument{

    AvoidNullString(self.fleetType);
    return @{
            @"pageNum":@(self.pageNum),
            @"pageSize":@(self.pageSize),
            @"fleetType":self.fleetType,
            };

}


@end
